package com.shop.admin.validate.paper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("试卷试题参数")
public class PaperQuestionValidate implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "试题参数缺失")
    @ApiModelProperty(value = "试题ID")
    private Integer id;

    @NotNull(message = "分值设置参数缺失")
    @ApiModelProperty(value = "分值")
    @Min(value = 1, message = "分值最小为1")
    private Integer score;
}
